package korkd.tower;

import org.anddev.andengine.entity.layer.tiled.tmx.TMXTiledMap;

import android.graphics.Point;

public class Road {
	
	private RoadBuilder mBuilder;
	public Point start;
	public Point end;
	
	Road(TMXTiledMap pMap)
	{
		mBuilder = new RoadBuilder(pMap);
	}
	
	public void create()
	{
		mBuilder.buildMainRoad();
		start = mBuilder.start;
		end = mBuilder.end;
		mBuilder.draw();
	}
	
	public void create(Castle c)
	{
		mBuilder.build(c);
	}
	
	public void draw()
	{
		mBuilder.draw();
	}
}